package com.google.code.tretristest.network.mockconnection;

import java.nio.channels.NotYetConnectedException;
import java.util.ArrayList;
import java.util.Collection;

import org.jivesoftware.smack.PacketListener;

import com.google.code.tretris.network.connection.TretrisConnectionHandlerInterface;
import com.google.code.tretris.network.peers.NetworkClient;

public class MockedXMPPConnection implements TretrisConnectionHandlerInterface {

	public void broadcast(String message, Collection<NetworkClient> to) {
		
	}

	public Collection<NetworkClient> connect(String username, String password,
			PacketListener packetlister) {

		Collection<NetworkClient> mockedList = new ArrayList<NetworkClient>();
		mockedList.add(new NetworkClient("1@test.nu", "Ettan"));
		mockedList.add(new NetworkClient("2@test.nu", "Tvaan"));
		mockedList.add(new NetworkClient("3@test.nu", "Trean"));
		return mockedList;
	}

	public void disconnect() throws NotYetConnectedException {
	}

	public void send(String to, String message) {
	}

	
}
